import majorInfo from "./major";

let school = []
let college = []
let major = []
majorInfo.forEach(v => {
    school.push({
        key: v.key,
        value: v.value
    })
    v.children.forEach(c => {
        college.push({
            key: c.key,
            value: c.value
        })
        c.children.forEach(m => {
            major.push({
                key: m.key,
                value: m.value
            })
        })
    })
})

export default {
    school,
    college,
    major
}

